//
//  SYBaseViewController.h
//  Foodie
//
//  Created by yunqi on 16/3/10.
//  Copyright © 2016年 SY. All rights reserved.
//

#import "SYNavigationItem.h"
#import "SYBaseEventController.h"
typedef enum
{
    SYBaseController_TAB_HOME,//首页
    SYBaseController_TAB_DYNAMIC,//动态.
    SYBaseController_TAB_PUBLISH,//发布
    SYBaseController_TAB_FRIEND,//社交
    SYBaseController_TAB_MY,//个人
    SYBaseController_TAB_UNKNOW,//未知
    
}SYBaseController_TAB;
//此基累处理一些公共ui的操作。
#define NavBarDefaultColor [UIColor syColorNavBarColor]
@interface SYBaseViewController : SYBaseEventController


PROPERTY_ASSIGN BOOL autoShowBack;//default is YES 是否显示返回按钮
PROPERTY_ASSIGN BOOL canShowGoRoot;//default YES  是否显示goRoot按钮

PROPERTY_ASSIGN BOOL navClearColor;//Default NO

PROPERTY_ASSIGN BOOL thisControllerCanGoRoot;//当前controller能否直接被跳到rootController default YES  如果有一个为NO的 以后的所有controller都不会显示goRoot按钮


PROPERTY_STRONG  SYNavigationItem *navBarItem;
PROPERTY_ASSIGN BOOL navBarHidden;
PROPERTY_STRONG NSString *backTitle;

PROPERTY_ASSIGN_READONLY SYBaseController_TAB tabType;




-(void)BaseControllerClickNavLeftButton:(UIButton *)btn;
-(void)BaseControllerClickNavRightButton:(UIButton *)btn;
-(void)baseGotoRootController;

-(void)SYRightBtnWithImageName:(NSString *)imageName  title:(NSString *)title;
-(void)SYLeftBtnWithImageName:(NSString *)imageName  title:(NSString *)title;

-(void)msAutoTextResponder;


@end
